# 所有 xxx.pdf 目标, 从 xxx.asy 生成
vpath %.asy . # asy 源码的查找目录
vpath %.pdf ./build # 生成的pdf 的查找目录

objects := $(patsubst %.asy,%.pdf,$(wildcard *.asy))
all: $(objects)
.PHONY : clean all

$(objects): %.pdf: %.asy
	asy -noView -o build/ $<

clean:
	-rm build/*.pdf build/*.eps	